<table class="table  table-hover general-table table-striped" style="color:#000;font-size:12px; margin-bottom:0;" id="nowtask">
    <tbody>
    
    <notempty name="task">
    

    <volist name="task" id="task">
        <tr style="cursor:pointer"  onClick="_openWindow('{:U('Task_daily/edit',['id'=>$task['id'],'rank'=>$i])}',1000, '任务详情', '保存全部',function(){ $('#TaskMissionListform').submit();$('.formdailyedit').submit();$('#TaskInteRetform').submit();$('#nowlistform').submit();$('#donelistform').submit(); return true; })">
            <td style="width:15px">
                <a href="#">
                    <i class="fa icon-clock-o" style="font-size:16px;color:#9EDDC6;margin-right:12px"></i>
                </a>
            </td>
            <td class="hidden-sm hidden-xs hidden-md" style="width:80px"><div class="limit_h">{$task['type_name']?$task['type_name']:'暂无分类'}</div></td>
            <td class="col-xs-2 col-lg-3"><div class="limit_h">{$task.title}</div></td>
            <td class="col-xs-2">
                <div title="进度条" class="progress progress-striped progress-xs " style="height:10px">
                    <div style="width:{$task['progress']}%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="{$task.progress}" role="progressbar" class="progress-bar progress-bar-danger">
                        <span class="sr-only">{$task.progress}% Complete</span>
                    </div>
                </div>
            </td>
            <td class="hidden-sm hidden-xs hidden-md"><php>echo date('Y/m/d',$task['realtime']);</php></td>
            <td>{:$task['member_count']?$task['member_count']:0}人参与</td>
            <td class="done">{$task.difference}</td>
            <td>{$task.member_name}</td>
            <td><i title="紧急程度" class="fa icon-star <switch name='task.isTop' >
                <case value='0' >muted-star</case>
                <case value='4' >red-star</case>
                <default/>green-star
                </switch>" style="font-size:16px"></i>
            	<?php if($task['isTop']==0){ ?>
                	<a class="f-makeTop" action="{:U('makeTop',['id'=>$task['id']])}"></a>    
                <?php } ?>
            </td>
            <!--,'#remindListpages~.wrapper'<td class="btn-gap" onClick="event.stopPropagation()">
                <a href="javascript:void(0)" class=" btn popovers" data-trigger="hover" data-placement="right" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus." data-original-title="Popovers in right"  >-->
                    <!--<i class="fa icon-arrow-right" style="font-size:16px;color:#65CEA7" ></i>-->
                <!--</a>
                <i class="fa icon-arrow-right" style="font-size:16px;color:#65CEA7" onClick="$('#hiddentype').css('display','block');$('#hidspan').attr('value',{$task.id});event.stopPropagation();" title="修改分类"></i>
            </td>-->
        </tr>
    </volist>
    
    <else/>
    
    <tr>
        <if condition="getAccessMenu($accessList, 'Intesys', 'Task_daily', 'add')">
            <td colspan="8"><div style="padding:20px; text-align:center;color:#5c5c5c">今天暂无任务,您可以从上面发布新任务</div></td>
        <else />
            <td colspan="8"><div style="padding:20px; text-align:center;color:#5c5c5c">今天暂无任务</div></td>
        </if>
    </tr> 
    
    </notempty>
    
    
    </tbody>
</table>
<script>
	//点击星星将当前任务置顶
	$(".f-makeTop").click(function(e) {
        $.getJSON($(this).attr('action'),{},function(data){
			$.ThinkBox.success('置顶成功',{'delayClose':800,modal:false, 'close': '关闭',x:0,y:0,center:false,locate:['left','top'], show:['',0]});	
		});
		$("#nowlistform").submit();
		return false;
    });
	//循环遍历显示出每个时间段紧急事件的数量
		//$("#task2 li .badge").remove();
	<?php if($remind){ ?>
		$(".oclick").append('<span class="badge">'+'{$remind}'+'</span>');
	<?php } ?>
</script>